package com.mlnx.netty.app.ecg.session.core;


import com.mlnx.tp.base.model.DeviceType;

import lombok.Data;

/**
 * Created by amanda.shan on 2019/10/10.
 */
@Data
public class DeviceSession extends NettySession {

    protected String deviceId;

    protected Integer patientId;

    protected DeviceType deviceType;

    public DeviceSession(String deviceId) {
        this.deviceId = deviceId;
        setKeepAliveSeconds(10);
    }

    public DeviceSession(String deviceId, Integer keepAliveSeconds) {
        this.deviceId = deviceId;
        setKeepAliveSeconds(keepAliveSeconds);
    }

    @Override
    public String getClientId() {
        return deviceId;
    }


}
